<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8">
		<title>Title</title>
		<style>
			.demo1 {
				width: 200px;
				height: 200px;
				border: 5px solid red;
				float: left;
        /* 清除浮动 */
        /* position: absolute;   */

        /* overflow不管用 */
        overflow: hidden;  
			}

			.demo2 {
				width: 250px;
				height: 100px;
				border: 5px solid green;
				line-height: 100px;
			}
		</style>
	</head>
	<body>
		<div class="demo1">这是demo1的文本</div>
		<div class="demo2">这是demo2的文本</div>
		<div class="demo2">talk is cheap show your </div>
	</body>
</html>
